//
// expression.hh for 201proba in /home/morel_t//Rendu/maths/201proba
//
// Made by thomas morel
// Login   <morel_t@epitech.net>
//
// Started on  Mon Feb 13 10:16:41 2012 thomas morel
// Last update Mon Feb 13 16:17:14 2012 thomas morel
//

#ifndef	PROBA_HH_
# define PROBA_HH_

#include <list>
#include <string>

class		Proba
{
  double	result;
  std::string	expr;

private:
  std::string		operand;
  std::list<double>	listOperand;
  std::list<char>	listOperator;

public:
  Proba(const std::string &expression);
  ~Proba();

  double	getResult() const;
  std::string	getExpr() const;

  void		replace(char c);
  void		fillOperatorList();
  void		fillOperandList();
  void		applyProba();
  void		findResult();
};

void		start(const char *expression);

#endif /* !PROBA_HH_ */
